﻿// JScript 文件
function TopAd()
{
    var strTopAd="";
    var topFlash="<div id=adBig><a href=\"/zhuanti/free_090403.htm\" "+ 
                    "target=_blank><img title=枕边游戏 购物全场免运费 "+
                    "src=\"../ad/top.jpg\" "+
                    "border=0></A></div>";
    if(location=="http://www.zb108.com/brand.html"||location=="http://www.zb108.com/sale.html"||location=="brand.html"||location=="http://www.zb108.com/"||location=="http://www.zb108.com/index.html")
    {
        strTopAd="<div id=adimage style=\"width:950px\">"+
                    "<div id=adBig><a href=\"/zhuanti/free_090403.htm\" "+ 
                    "target=_blank><img title=枕边游戏 购物全场免运费 "+
                    "src=\"../products/free_980_b.gif\" "+
                    "border=0></A></div>"+
                    "<div id=adSmall style=\"display: none\">";
        strTopAd+=  topFlash;     
        strTopAd+=  "</div></div>";
    }
    else
    {
        strTopAd="<div>"+topFlash+"</div>";
    }
    strTopAd+="<div style=\"height:15px; display:none; clear:both;overflow:hidden\"></div>";
    return strTopAd;
}
document.write(TopAd());
$(function(){
    setTimeout("showImage();",2000);
});
function showImage()
{
    $("#adBig").slideUp(1000,function(){$("#adSmall").slideDown(1000);});
}
